# 导包
# from api.login import login
from api.login import login
# 测试数据

test_data = [
    {"username": "13488888888", "password": "123456"},
    {"username": "", "password": "123456"}
]
# 遍历获取手机号
for i in test_data:
    phone = i["username"]
    # print(phone)
    rst = login(phone)  #调用登录函数
    print(rst)
    # 断言
    if phone == "13488888888":
        assert "账号成功" == rst
        assert "账号错误" == rst